AmCharts.exportDrawingMenu=[{"class":"export-drawing",label:"Export",menu:[{label:"Undo",click:function(){this.drawing.handler.undo()}},{label:"Redo",click:function(){this.drawing.handler.redo()}},{label:"Cancel",click:function(){this.drawing.handler.done()}},{label:"Save",menu:[{label:"JPG",click:function(){this.drawing.handler.done();this.toJPG({},function(t){this.download(t,"image/jpg","amCharts.jpg")})}},{label:"PNG",click:function(){this.drawing.handler.done();this.toPNG({},function(t){this.download(t,"image/png","amCharts.png")})}},{label:"PDF",click:function(){this.drawing.handler.done();this.toPDF({},function(t){this.download(t,"application/pdf","amCharts.pdf")})}},{label:"SVG",click:function(){this.drawing.handler.done();this.toSVG({},function(t){this.download(t,"text/xml","amCharts.svg")})}}]}]}];AmCharts.exportCFG={enabled:true,libs:{path:"../libs/"},menu:[{"class":"export-main",label:"Export",menu:[{label:"Draw",click:function(){this.capture({action:"draw",freeDrawingBrush:{width:2,color:"#000000",shadow:{color:"rgba(0,0,0,0.3)",blur:10,offsetX:3,offsetY:3}}},function(){this.createMenu(AmCharts.exportDrawingMenu)})}},{label:"Delayed draw",action:"draw",delay:2},{label:"Delayed save",format:"png",delay:2},{label:"Watermark",format:"png",action:false,afterCapture:function(){var t=this.setup.fabric;var a=new fabric.Text("watermark",{originX:"center",originY:"center",top:t.height/2,left:t.width/2,fontSize:50,opacity:.4});t.add(a);this.toPNG({},function(t){var a=this.defaults.formats.PNG;var n=a.mimeType;var i="amCharts."+a.extension;var o=t;this.download(o,n,i)})}},{label:"Download",menu:[{label:"JPG",click:function(){this.capture({},function(){this.toJPG({},function(t){this.download(t,"image/jpg","amCharts.jpg")})})}},{label:"PNG",click:function(){this.capture({},function(){this.toPNG({},function(t){this.download(t,"image/png","amCharts.png")})})}},{label:"PDF",click:function(){this.capture({},function(){this.toPDF({},function(t){this.download(t,"application/pdf","amCharts.pdf")})})}},{label:"PDF + data",click:function(){this.capture({},function(){var t=this.setup.chart.dataProvider;var a=this.toArray({withHeader:true,data:t});var n=[];var o=[{image:"reference",fit:[523.28,769.89]}];for(i in a[0]){n.push("*")}o.push({table:{headerRows:1,widths:n,body:a},layout:"lightHorizontalLines"});this.toPDF({content:o},function(t){this.download(t,"application/pdf","amCharts.pdf")})})}},{label:"SVG",click:function(){this.capture({},function(){this.toSVG({},function(t){this.download(t,"text/xml","amCharts.svg")})})}},{label:"CSV",click:function(){this.toCSV({},function(t){this.download(t,"text/plain","amCharts.csv")})}},{label:"JSON",click:function(){this.toJSON({},function(t){this.download(t,"text/plain","amCharts.json")})}},{label:"XLSX",click:function(){this.toXLSX({},function(t){this.download(t,"application/octet-stream","amCharts.xlsx")})}}]}]}]};
//# sourceMappingURL=export.config.advanced.map.js